-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add trussed abstraction and nkpk subcommand #500
Conversation
did some testing on this to find a regression, but nothing so far... nice! lgtm! |
I get an error when doing
It looks like the |
Ah, good catch. That’s due to this ugly hack: pynitrokey/pynitrokey/cli/__init__.py Lines 106 to 110 in 9703773
Maybe there is a typesafe replacement for this code. |
Should be fixed now. |
This patch introduces a pynitrokey.trussed module that contains the functionality that is common for all Nitrokey devices using the Trussed framework: communication via CTAPHID, basic commands using admin-app and provisioner-app, firmware updates using the Nitrokey container format and the LPC55 and NRF52 bootloader implementations.
562829e
to
e3c0f7c
Compare
This PR adds a new abstraction layer by extracting most of the functionality from the
nk3
module to atrussed
module and introduces thenkpk
subcommand that uses this abstraction.Currently available commands for
nkpk
:list
provision fido2
reboot
rng
status
test
version